import http from '@/utils/request'

export function getLotteryTimes() {
	return http.get('/user/lottery/times')
}

export function getPrizes() {
	return http.get('/user/lottery/prizes')
}

export function startLottery(params) {
	return http.post('/user/lottery/shop/startlottery', params)
}

export function getShopLotteryInfo(params) {
	return http.post('/user/lottery/shop/readylottery', params)
}

export function getShopAd(shopId) {
	return http.get('/user/ad/getAd/' + shopId)
}